package com.zking.mapper;

import com.zking.entity.Resource;
import com.zking.entity.Role;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ResourceMapper {
    int insert(Resource record);

    int insertSelective(Resource record);

    List<Resource> queryResourcesByRole(Role role);

    List<Resource> queryResourcesByRoleId(int id);

    List<Resource> selectAll();
}